package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 订单对象 orders
 *
 * @author ruoyi
 * @date 2022-05-03
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Orders extends BaseEntity{
    private static final long serialVersionUID = 1L;

    /** 订单表主键id */
    private Long id;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderNo;

    /** 用户主键id */
    @Excel(name = "用户主键id")
    private Long userId;
    private String userName;

    /** 订单总价 */
    @Excel(name = "订单总价")
    private Double totalPrice;

    /** 支付状态（0：未支付，1：已支付） */
    @Excel(name = "支付状态", readConverterExp = "0=：未支付，1：已支付")
    private Integer payStatus;

    private List<OrderItem> orderItems;
}
